/*
 * @Author: cjx
 * @Date: 2023-04-12 15:15:53
 * @LastEditTime: 2023-04-12 15:18:23
 * @Description: 用户信息相关接口
 */
import Qs from 'Qs'
import axios from '@/utils/axios.request'

/**
 * 获取用户信息
 */
export const getUserInfo = () => {
  return axios.post({
    url: '/api/user/info',
    withCredentials: true,
    data: Qs.stringify({})
  })
}

/**
 * 获取用户按钮权限
 */
export const getUserPermission = () => {
  return axios.post({
    url: '/api/user/permission',
    withCredentials: true,
    data: Qs.stringify({})
  })
}
